package com.yingda.electronicscaleadvices.net;


public class Common {
    public static final int Interface_success = 77;
    public static final int Interface_err = 78;
    public static final int Interface_success_law = 82;
    //没有授权
    public static final int Interface_No_Authorization = 65;

    //调接口网络错误
    public static final int Interface_net_err = 79;
    //删除数据
    public static final int Delete_data_success = 80;
    public static final int Delete_data_err = 81;
    public static final int Interface_entry = 82;

    public static String LOGIN;
    public static String DEVICE_ACTIVATION_CODE;
    public static String DISH_INFORMATION;
    public static String FACIAL_FEATURE_VALUE;
    public static String START_PAY;
    public static String APPUP_DATE;
    public static String TIME_PERIOD;
    public static String EXPENSES_RECORD;
    public static String PERSONNEL_INFORMATION;
    public static String OFFLINE_BULK_UPLOAD;
    public static String ORDER_REFUND;
    public static String GET_ORDER_STATISTICS;
    public static String ORDER_STAILE;
    public static String GET_FOOD_LIST;
    public static String GET_DISH_TYPE;
    public static String DISH_UPDATE;
    public static String GET_DISH_STATISTICS;


    public static void initAddress(String BaseUrl){

       //登录的地址
      //  LOGIN = BaseUrl + "/api/v1/auth/login";
        LOGIN = BaseUrl + "/api/v1/auth/login.encrypt";
       //获取设备激活码
        DEVICE_ACTIVATION_CODE = BaseUrl + "/api/v1/device/access.key";
       //获取菜品信息
      //  DISH_INFORMATION = BaseUrl + "/api/v1/dish/list.meal";
        DISH_INFORMATION = BaseUrl + "/api/v1/dish/listMealDevice";
       //人脸特征值的下载
        FACIAL_FEATURE_VALUE = BaseUrl + "/api/v1/detect/available.update.bd";
       //开始支付
        START_PAY = BaseUrl +"/api/v1/order/pay";
        //获取人员信息
        PERSONNEL_INFORMATION = BaseUrl + "/api/v1/offline/member.info";
       //版本更新的地址
        APPUP_DATE = BaseUrl + "/api/v1/upgrade/app";
        //获取订单统计数据
        GET_ORDER_STATISTICS = BaseUrl + "/api/v1/order/statistic.today";
        //消费记录
        EXPENSES_RECORD = BaseUrl + "/api/v1/order/page.multi";
        //订单退款
        ORDER_REFUND = BaseUrl + "/api/v1/order/refund";
        //订单详情
        ORDER_STAILE = BaseUrl + "/api/v1/order.detail/list";
        //获取时段时间 ，早，中，晚 的具体时间
        TIME_PERIOD = BaseUrl + "/api/v1/order/ctime";
        //获取菜品列表
       // GET_FOOD_LIST = BaseUrl + "/api/v1/dish/page";
        GET_FOOD_LIST = BaseUrl + "/api/v1/dish/pageDevice";
        //获取菜品类别
        GET_DISH_TYPE = BaseUrl + "/api/v1/dishCategory/list";
        //菜品修改
        DISH_UPDATE = BaseUrl + "/api/v1/dish/update";
       //获取菜品统计
       // GET_DISH_STATISTICS = BaseUrl + "/api/v1/dish/stat";
        GET_DISH_STATISTICS = BaseUrl + "/api/v1/dish/statDevice";
        //离线数据批量上传
        OFFLINE_BULK_UPLOAD = BaseUrl + "/api/v1/order/batch.pay";

   }









}
